pub enum SourceRealm {
AnyRealm(bool),
RealmId(u32),
}Expand description
Source realm selector. “self” in config is resolved to realm_id by actor before registration; “*” in config maps to any_realm = true.
Variants§
Implementations§
Source§impl SourceRealm
impl SourceRealm
Sourcepub fn merge(
field: &mut Option<SourceRealm>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<SourceRealm>, tag: u32, wire_type: WireType, buf: &mut impl Buf, ctx: DecodeContext, ) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into self.
Sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
Source§impl Clone for SourceRealm
impl Clone for SourceRealm
Source§fn clone(&self) -> SourceRealm
fn clone(&self) -> SourceRealm
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SourceRealm
impl Debug for SourceRealm
Source§impl Hash for SourceRealm
impl Hash for SourceRealm
Source§impl PartialEq for SourceRealm
impl PartialEq for SourceRealm
Source§fn eq(&self, other: &SourceRealm) -> bool
fn eq(&self, other: &SourceRealm) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SourceRealm
impl Eq for SourceRealm
impl StructuralPartialEq for SourceRealm
Auto Trait Implementations§
impl Freeze for SourceRealm
impl RefUnwindSafe for SourceRealm
impl Send for SourceRealm
impl Sync for SourceRealm
impl Unpin for SourceRealm
impl UnsafeUnpin for SourceRealm
impl UnwindSafe for SourceRealm
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