pub struct JoinOptions {
pub hold_unnamed: bool,
pub advertise: bool,
pub outside_tor: bool,
}Expand description
How a session is joined.
Fields§
§hold_unnamed: boolHold a node’s frames until an advertisement names its sender (see
XdcFrame::verified_sender). An app window has no use for the sender,
so it takes frames as they come.
advertise: boolAdvertise as part of joining. Off for a caller that advertises later
(XdcSession::advertise) or never (an app with nobody to play with).
A session that never advertised leaves without a departure signal.
outside_tor: boolThe caller vouches that the user accepted a session outside the chosen network (Tor,
I2P). Otherwise the account’s consent, or the process-wide
allow_outside_transport, decides.
Trait Implementations§
Source§impl Clone for JoinOptions
impl Clone for JoinOptions
Source§impl Debug for JoinOptions
impl Debug for JoinOptions
Auto Trait Implementations§
impl Forget for JoinOptions
impl Freeze for JoinOptions
impl Move for JoinOptions
impl RefUnwindSafe for JoinOptions
impl Send for JoinOptions
impl Sync for JoinOptions
impl Unpin for JoinOptions
impl UnsafeUnpin for JoinOptions
impl UnwindSafe for JoinOptions
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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