Struct fastly::log::Endpoint [−][src]
pub struct Endpoint { /* fields omitted */ }
Expand description
A Fastly logging endpoint.
Most applications should use the high-level interface provided by
log-fastly
rather than writing to this interface directly.
To write to this endpoint, use the std::io::Write
interface. For example:
use std::io::Write; let mut endpoint = Endpoint::from_name("my_endpoint"); writeln!(endpoint, "Hello from the edge!").unwrap();
Implementations
Try to get an Endpoint
by name.
Currently, the conditions on an endpoint name are:
-
It must not be empty
-
It must not contain newlines (
\n
) or colons (:
) -
It must not be
stdout
orstderr
, which are reserved for debugging.
Trait Implementations
Write a buffer into this writer, returning how many bytes were written. Read more
Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more
can_vector
)Determines if this Write
r has an efficient write_vectored
implementation. Read more
Attempts to write an entire buffer into this writer. Read more
write_all_vectored
)Attempts to write multiple buffers into this writer. Read more
Writes a formatted string into this writer, returning any error encountered. Read more
Auto Trait Implementations
impl RefUnwindSafe for Endpoint
impl UnwindSafe for Endpoint
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self