pub struct LfoRequest { /* private fields */ }Expand description
Ask for a single file on a remote LFO server by path.
By default requests indicate support for XZ compression, but this is configurable. Even if a request accepts compression, the server may decide to reply with an uncompressed response if the requested file is itself an archive on disk.
Requests contain the CID (Customer ID) and AID (Agent ID) of the client, but the LFO server will accept any value for these, so in practice no authentication is required.
Implementations§
Source§impl LfoRequest
impl LfoRequest
Sourcepub fn new_simple(remote_path: String) -> Self
pub fn new_simple(remote_path: String) -> Self
Create a request for remote_path with default values
pub fn new_custom( cid: [u8; 16], aid: [u8; 16], compression: CompressionFormats, remote_path: String, ) -> Self
Trait Implementations§
Source§impl Clone for LfoRequest
impl Clone for LfoRequest
Source§fn clone(&self) -> LfoRequest
fn clone(&self) -> LfoRequest
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 LfoRequest
impl Debug for LfoRequest
Source§impl PartialEq for LfoRequest
impl PartialEq for LfoRequest
impl Eq for LfoRequest
impl StructuralPartialEq for LfoRequest
Auto Trait Implementations§
impl Freeze for LfoRequest
impl RefUnwindSafe for LfoRequest
impl Send for LfoRequest
impl Sync for LfoRequest
impl Unpin for LfoRequest
impl UnwindSafe for LfoRequest
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