pub struct RuntimeLogHost { /* private fields */ }Expand description
Client for the gestalt.provider.v1.RuntimeLogHost service.
Implementations§
Source§impl RuntimeLogHost
impl RuntimeLogHost
Sourcepub fn with_timeout(self, timeout: Duration) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
Sets a deadline applied to every unary call; calls that run past it fail with DEADLINE_EXCEEDED. Streaming calls are unaffected.
Sourcepub async fn connect() -> Result<Self, GestaltError>
pub async fn connect() -> Result<Self, GestaltError>
Connects to the runtime log host host service described by the environment.
Sourcepub async fn connect_named(name: &str) -> Result<Self, GestaltError>
pub async fn connect_named(name: &str) -> Result<Self, GestaltError>
Connects to the named runtime log host host-service binding.
Sourcepub async fn append_logs(
&mut self,
session_id: String,
logs: Vec<RuntimeLogEntry>,
) -> Result<i64, GestaltError>
pub async fn append_logs( &mut self, session_id: String, logs: Vec<RuntimeLogEntry>, ) -> Result<i64, GestaltError>
Calls gestalt.provider.v1.RuntimeLogHost.AppendLogs.
Sourcepub async fn append_logs_raw(
&mut self,
request: AppendRuntimeLogsRequest,
) -> Result<AppendRuntimeLogsResponse, GestaltError>
pub async fn append_logs_raw( &mut self, request: AppendRuntimeLogsRequest, ) -> Result<AppendRuntimeLogsResponse, GestaltError>
Calls gestalt.provider.v1.RuntimeLogHost.AppendLogs with the full request and response messages.
Auto Trait Implementations§
impl !Freeze for RuntimeLogHost
impl !RefUnwindSafe for RuntimeLogHost
impl !UnwindSafe for RuntimeLogHost
impl Send for RuntimeLogHost
impl Sync for RuntimeLogHost
impl Unpin for RuntimeLogHost
impl UnsafeUnpin for RuntimeLogHost
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
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request