[−][src]Struct envoy_sdk::extension::access_logger::context::LoggerContext
Implementations
impl<'a, L> LoggerContext<'a, L> where
L: Logger,
[src]
L: Logger,
pub fn new(
logger: L,
logger_ops: &'a dyn Ops,
http_client_ops: &'a dyn ResponseOps
) -> LoggerContext<'a, L>
[src]
logger: L,
logger_ops: &'a dyn Ops,
http_client_ops: &'a dyn ResponseOps
) -> LoggerContext<'a, L>
pub fn with_default_ops(logger: L) -> Self
[src]
Creates a new Access logger context bound to the actual Envoy ABI.
Trait Implementations
impl<'a, L> Context for LoggerContext<'a, L> where
L: Logger,
[src]
L: Logger,
fn on_http_call_response(
&mut self,
token_id: u32,
num_headers: usize,
body_size: usize,
num_trailers: usize
)
[src]
&mut self,
token_id: u32,
num_headers: usize,
body_size: usize,
num_trailers: usize
)
fn get_current_time(&self) -> SystemTime
[src]
fn get_property(&self, path: Vec<&str>) -> Option<Vec<u8>>
[src]
fn set_property(&self, path: Vec<&str>, value: Option<&[u8]>)
[src]
fn get_shared_data(&self, key: &str) -> (Option<Vec<u8>>, Option<u32>)
[src]
fn set_shared_data(
&self,
key: &str,
value: Option<&[u8]>,
cas: Option<u32>
) -> Result<(), Status>
[src]
&self,
key: &str,
value: Option<&[u8]>,
cas: Option<u32>
) -> Result<(), Status>
fn register_shared_queue(&self, name: &str) -> u32
[src]
fn resolve_shared_queue(&self, vm_id: &str, name: &str) -> Option<u32>
[src]
fn dequeue_shared_queue(&self, queue_id: u32) -> Result<Option<Vec<u8>>, Status>
[src]
fn enqueue_shared_queue(
&self,
queue_id: u32,
value: Option<&[u8]>
) -> Result<(), Status>
[src]
&self,
queue_id: u32,
value: Option<&[u8]>
) -> Result<(), Status>
fn dispatch_http_call(
&self,
upstream: &str,
headers: Vec<(&str, &str)>,
body: Option<&[u8]>,
trailers: Vec<(&str, &str)>,
timeout: Duration
) -> Result<u32, Status>
[src]
&self,
upstream: &str,
headers: Vec<(&str, &str)>,
body: Option<&[u8]>,
trailers: Vec<(&str, &str)>,
timeout: Duration
) -> Result<u32, Status>
fn get_http_call_response_headers(&self) -> Vec<(String, String)>
[src]
fn get_http_call_response_body(
&self,
start: usize,
max_size: usize
) -> Option<Vec<u8>>
[src]
&self,
start: usize,
max_size: usize
) -> Option<Vec<u8>>
fn get_http_call_response_trailers(&self) -> Vec<(String, String)>
[src]
fn on_done(&mut self) -> bool
[src]
fn done(&self)
[src]
impl<'a, L> RootContext for LoggerContext<'a, L> where
L: Logger,
[src]
L: Logger,
fn on_configure(&mut self, plugin_configuration_size: usize) -> bool
[src]
fn on_log(&mut self)
[src]
fn on_vm_start(&mut self, _vm_configuration_size: usize) -> bool
[src]
fn get_configuration(&self) -> Option<Vec<u8>>
[src]
fn set_tick_period(&self, period: Duration)
[src]
fn on_tick(&mut self)
[src]
fn on_queue_ready(&mut self, _queue_id: u32)
[src]
fn on_create_child_context(&mut self, _context_id: u32) -> Option<ChildContext>
[src]
Auto Trait Implementations
impl<'a, L> !RefUnwindSafe for LoggerContext<'a, L>
impl<'a, L> !Send for LoggerContext<'a, L>
impl<'a, L> !Sync for LoggerContext<'a, L>
impl<'a, L> Unpin for LoggerContext<'a, L> where
L: Unpin,
L: Unpin,
impl<'a, L> !UnwindSafe for LoggerContext<'a, L>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,