pub struct StackOpenParams {
pub config: StackConfig,
pub tcp_port_mapping: Option<Vec<(Endpoint, u16)>>,
pub known_sn: Option<Vec<Device>>,
pub known_device: Option<Vec<Device>>,
pub active_pn: Option<Vec<Device>>,
pub passive_pn: Option<Vec<Device>>,
pub outer_cache: Option<Box<dyn OuterDeviceCache>>,
pub chunk_store: Option<Box<dyn ChunkReader>>,
pub ndn_event: Option<Box<dyn NdnEventHandler>>,
}
Fields§
§config: StackConfig
§tcp_port_mapping: Option<Vec<(Endpoint, u16)>>
§known_sn: Option<Vec<Device>>
§known_device: Option<Vec<Device>>
§active_pn: Option<Vec<Device>>
§passive_pn: Option<Vec<Device>>
§outer_cache: Option<Box<dyn OuterDeviceCache>>
§chunk_store: Option<Box<dyn ChunkReader>>
§ndn_event: Option<Box<dyn NdnEventHandler>>
Implementations§
Auto Trait Implementations§
impl Freeze for StackOpenParams
impl !RefUnwindSafe for StackOpenParams
impl Send for StackOpenParams
impl Sync for StackOpenParams
impl Unpin for StackOpenParams
impl !UnwindSafe for StackOpenParams
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more