MCPcopy Create free account
hub / github.com/f0rr0/oliphaunt / parse_notice_message

Method parse_notice_message

src/protocol/parser.rs:343–353  ·  view source on GitHub ↗
(
        &self,
        length: usize,
        reader: &mut BufferReader<'_>,
    )

Source from the content-addressed store, hash-verified

341 }
342
343 fn parse_notice_message(
344 &self,
345 length: usize,
346 reader: &mut BufferReader<'_>,
347 ) -> Result<BackendMessage> {
348 let fields = collect_fields(reader)?;
349 let message = fields.get("M").cloned();
350 let mut notice = NoticeMessage::new(length, message);
351 notice.apply_fields(&fields);
352 Ok(BackendMessage::Notice(notice))
353 }
354}

Callers 1

handle_packetMethod · 0.80

Calls 2

collect_fieldsFunction · 0.85
apply_fieldsMethod · 0.80

Tested by

no test coverage detected