pub struct SavedStateData { /* private fields */ }
Expand description
Alternative representation of the saved state that ensures that all code paths deal with either the connected or disconnected state, and cannot neglect one.
Implementations§
Source§impl SavedStateData
impl SavedStateData
Sourcepub fn find_channel(&self, offer: OfferKey) -> Option<&Channel>
pub fn find_channel(&self, offer: OfferKey) -> Option<&Channel>
Finds a channel in the saved state.
Sourcepub fn channels_and_gpadls(&self) -> (&[Channel], &[Gpadl])
pub fn channels_and_gpadls(&self) -> (&[Channel], &[Gpadl])
Retrieves all the channels and GPADLs from the saved state. If disconnected, returns any reserved channels and their GPADLs.
Trait Implementations§
Source§impl From<SavedState> for SavedStateData
impl From<SavedState> for SavedStateData
Source§fn from(value: SavedState) -> Self
fn from(value: SavedState) -> Self
Converts to this type from the input type.
Source§impl From<SavedStateData> for SavedState
impl From<SavedStateData> for SavedState
Source§fn from(value: SavedStateData) -> Self
fn from(value: SavedStateData) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SavedStateData
impl RefUnwindSafe for SavedStateData
impl Send for SavedStateData
impl Sync for SavedStateData
impl Unpin for SavedStateData
impl UnwindSafe for SavedStateData
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