pub struct SessionArbitration { /* private fields */ }Implementations§
Source§impl SessionArbitration
impl SessionArbitration
pub const fn new(generation: u32) -> Self
Sourcepub fn attach(&mut self, transport: Transport)
pub fn attach(&mut self, transport: Transport)
Start a fresh protocol session for transport and invalidate every
frame queued by the previous session.
Sourcepub fn detach(&mut self, transport: Transport) -> bool
pub fn detach(&mut self, transport: Transport) -> bool
Detach only if the edge belongs to the active session. A late detach from a displaced transport must not tear down its replacement.
pub const fn generation(&self) -> u32
pub fn accepts_frame(&self, transport: Transport) -> bool
pub const fn destination(&self) -> Option<(Transport, u32)>
pub fn advertising_allowed(&self) -> bool
Trait Implementations§
Source§impl Clone for SessionArbitration
impl Clone for SessionArbitration
Source§fn clone(&self) -> SessionArbitration
fn clone(&self) -> SessionArbitration
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SessionArbitration
impl Debug for SessionArbitration
Source§impl PartialEq for SessionArbitration
impl PartialEq for SessionArbitration
impl Copy for SessionArbitration
impl Eq for SessionArbitration
impl StructuralPartialEq for SessionArbitration
Auto Trait Implementations§
impl Freeze for SessionArbitration
impl RefUnwindSafe for SessionArbitration
impl Send for SessionArbitration
impl Sync for SessionArbitration
impl Unpin for SessionArbitration
impl UnwindSafe for SessionArbitration
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)