pub struct HttpOpenOptions { /* private fields */ }Expand description
High-level options used to construct an crate::HttpOpener.
Implementations§
Source§impl HttpOpenOptions
impl HttpOpenOptions
Sourcepub fn new(recipient_secret_key: [u8; 32]) -> Self
pub fn new(recipient_secret_key: [u8; 32]) -> Self
Creates opening options for a recipient secret key.
Sourcepub fn with_limits(self, limits: BodyEnvelopeLimits) -> Self
pub fn with_limits(self, limits: BodyEnvelopeLimits) -> Self
Applies explicit body envelope limits.
Sourcepub fn recipient_secret_key(&self) -> [u8; 32]
pub fn recipient_secret_key(&self) -> [u8; 32]
Returns the recipient secret key.
Sourcepub fn limits(&self) -> Option<&BodyEnvelopeLimits>
pub fn limits(&self) -> Option<&BodyEnvelopeLimits>
Returns explicit opening limits, if configured.
Trait Implementations§
Source§impl Clone for HttpOpenOptions
impl Clone for HttpOpenOptions
Source§fn clone(&self) -> HttpOpenOptions
fn clone(&self) -> HttpOpenOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HttpOpenOptions
impl Debug for HttpOpenOptions
Source§impl PartialEq for HttpOpenOptions
impl PartialEq for HttpOpenOptions
impl Eq for HttpOpenOptions
impl StructuralPartialEq for HttpOpenOptions
Auto Trait Implementations§
impl Freeze for HttpOpenOptions
impl RefUnwindSafe for HttpOpenOptions
impl Send for HttpOpenOptions
impl Sync for HttpOpenOptions
impl Unpin for HttpOpenOptions
impl UnsafeUnpin for HttpOpenOptions
impl UnwindSafe for HttpOpenOptions
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