[−][src]Struct milstian_internet_framework::response::tcp::http::filesystem::Responder
Fields
filename: Option<String>
Methods
impl Responder
[src]
pub fn new() -> Responder
[src]
pub fn get_metadata_modified_as_rfc7231(modified: SystemTime) -> String
[src]
pub fn get_rfc7231_as_systemtime(
modified: &String
) -> Result<SystemTime, String>
[src]
modified: &String
) -> Result<SystemTime, String>
pub fn get_modified_hash(data: &SystemTime) -> String
[src]
pub fn get_cache_control(_application: &Application) -> String
[src]
pub fn get_matching_filename(
request_message: &Message,
application: &Application
) -> Option<String>
[src]
request_message: &Message,
application: &Application
) -> Option<String>
pub fn get_response(
filename: &String,
request_message: &Message,
application: &Application
) -> Result<Message, String>
[src]
filename: &String,
request_message: &Message,
application: &Application
) -> Result<Message, String>
Trait Implementations
impl ResponderInterface for Responder
[src]
fn matches(
&mut self,
request_message: &Message,
application: &Application,
_socket: &SocketAddr,
_overflow_bytes: &u64
) -> bool
[src]
&mut self,
request_message: &Message,
application: &Application,
_socket: &SocketAddr,
_overflow_bytes: &u64
) -> bool
fn respond(
&self,
request_message: &Message,
application: &Application,
_socket: &SocketAddr,
_overflow_bytes: &u64
) -> Result<Message, String>
[src]
&self,
request_message: &Message,
application: &Application,
_socket: &SocketAddr,
_overflow_bytes: &u64
) -> Result<Message, String>
impl Clone for Responder
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> ResponderInterfaceCopy for T where
T: 'static + ResponderInterface + Clone + Send,
[src]
T: 'static + ResponderInterface + Clone + Send,
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,