pub struct SessionOptions {
pub agent: Option<String>,
pub progress: Option<PushProgress>,
}Expand description
The options of a session.
Fields§
§agent: Option<String>The agent that the session sends in Hello.
The default is ostrya/<version>.
progress: Option<PushProgress>A handle that the session also counts its progress into.
Trait Implementations§
Source§impl Clone for SessionOptions
impl Clone for SessionOptions
Source§impl Debug for SessionOptions
impl Debug for SessionOptions
Auto Trait Implementations§
impl !RefUnwindSafe for SessionOptions
impl !UnwindSafe for SessionOptions
impl Forget for SessionOptions
impl Freeze for SessionOptionswhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ArcInner<ProgressCounters> is !null: Freeze,
PhantomData<ArcInner<ProgressCounters>>: Freeze,
impl Move for SessionOptions
impl Send for SessionOptions
impl Sync for SessionOptions
impl Unpin for SessionOptions
impl UnsafeUnpin for SessionOptionswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<ProgressCounters> is !null: UnsafeUnpin,
PhantomData<ArcInner<ProgressCounters>>: UnsafeUnpin,
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