pub struct SessionOptions {
pub agent: Option<String>,
pub collection: 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>.
collection: Option<String>The collection id that the session sends in Hello, under the key
collection.
None targets the local refs of the server. The collection id of the
server also targets its local refs. The session does not check the
id: the server refuses an id that fails the collection-id rule.
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 Freeze for SessionOptions
impl Send for SessionOptions
impl Sync for SessionOptions
impl Unpin for SessionOptions
impl UnsafeUnpin for SessionOptions
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