#[non_exhaustive]pub struct RouteBindPeer {
pub observed_peer: Option<ObservedPeer>,
pub operator_app: Option<OperatorApp>,
}Expand description
The route.bind keys carried beside ModuleControlRequest::RouteBind.
Both are absent unless the target declared the matching capability, and an
absent key is omitted, never null. Decoding ignores every other key, so a
module reads this from the same body it decodes as the bind.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.observed_peer: Option<ObservedPeer>Sent only to a target declaring OBSERVED_PEER_CAPABILITY.
operator_app: Option<OperatorApp>Sent only to a target declaring OPERATOR_APP_CAPABILITY, and only
when the daemon recognised the opening connection as an operator app.
Implementations§
Source§impl RouteBindPeer
impl RouteBindPeer
Sourcepub fn with_observed_peer(self, observed_peer: Option<ObservedPeer>) -> Self
pub fn with_observed_peer(self, observed_peer: Option<ObservedPeer>) -> Self
Set or clear observed_peer.
Sourcepub fn with_operator_app(self, operator_app: Option<OperatorApp>) -> Self
pub fn with_operator_app(self, operator_app: Option<OperatorApp>) -> Self
Set or clear operator_app.
Trait Implementations§
Source§impl Clone for RouteBindPeer
impl Clone for RouteBindPeer
Source§impl Debug for RouteBindPeer
impl Debug for RouteBindPeer
Source§impl Default for RouteBindPeer
impl Default for RouteBindPeer
Source§impl<'de> Deserialize<'de> for RouteBindPeer
impl<'de> Deserialize<'de> for RouteBindPeer
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RouteBindPeer
Source§impl PartialEq for RouteBindPeer
impl PartialEq for RouteBindPeer
Source§impl Serialize for RouteBindPeer
impl Serialize for RouteBindPeer
impl StructuralPartialEq for RouteBindPeer
Auto Trait Implementations§
impl Freeze for RouteBindPeer
impl RefUnwindSafe for RouteBindPeer
impl Send for RouteBindPeer
impl Sync for RouteBindPeer
impl Unpin for RouteBindPeer
impl UnsafeUnpin for RouteBindPeer
impl UnwindSafe for RouteBindPeer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more